package com.shangxian.giveithome.mapper;

import com.shangxian.giveithome.entity.petCard.ScanRecord;
import com.shangxian.giveithome.entity.petCard.outputParam.ScanRecordDetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author coderFu
 * @create 2021/5/3
 */
@Mapper
public interface ScanRecordMapper {

    /**
     * 查询扫描记录的个数
     * @return
     */
     int findAllScanRecordCount();

    /**
     * 保存扫描记录
     * @param scanRecord
     * @return
     */
    int saveScanRecord(ScanRecord scanRecord);

    /**
     * 分页查询扫码记录
     * @param id
     * @param pageNumber
     * @param pageSize
     * @return
     */
    List<ScanRecordDetails> findScanRecordByPetCardCodeId(Long id, int pageNumber, int pageSize);
}
